/*
 * @Author: jiutian
 * @Date: 2023-01-31 18:48:29
 * @LastEditTime: 2023-01-31 19:54:01
 * @LastEditors:  
 */
/*
 * @Author: jiutian
 * @Date: 2023-01-31 18:48:29
 * @LastEditTime: 2023-01-31 18:49:39
 * @LastEditors:
 */
import _camelCase from "lodash/camelCase";
const requireModule = import.meta.globEager('./module/*.ts');
let modules = {};
Object.keys(requireModule).forEach(filepath => {
  let filename = filepath.split('/')[filepath.split('/').length-1].split('.')[0]
  modules[_camelCase(filename)] = [...requireModule[filepath].default]  
})

export default modules;
